<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			span{
				counter-reset: la;
				counter-increment: la;
			}
			span:before{
				content: counter(la);
			}
		</style>
	</head>
	<body>
		<div>我是中国第<span></span>帅的男人</div>
		<script type="text/javascript">
			let dom=document.querySelector("span");
			console.log(document.querySelector("span").innerText);//没有内容
			console.log(window.getComputedStyle(dom,":before").content);//counter(la)  也没有获取具体值
		</script>
	</body>
</html>
